
package com.android.study;

import android.util.Log;

public class Logging {
    private static final String TAG = "Lory";

    public static void log(Class<?> klass, String... content) {
        StringBuilder sb = new StringBuilder();
        sb.append(klass.getSimpleName());
        for (String s : content) {
            sb.append(" :: ");
            sb.append(s);
        }
        Log.i(TAG, sb.toString());
    }

    public static void log(Object o, String... content) {
        StringBuilder sb = new StringBuilder();
        sb.append(o.getClass().getSimpleName());
        for (String s : content) {
            sb.append(" :: ");
            sb.append(s);
        }
        Log.i(TAG, sb.toString());
    }
}
